﻿<DateTimeRange @bind-Value="@DateTimeRangeValue2" />
<div>
    @if (DateTimeRangeValue2.Start != DateTime.MinValue)
    {
        <span>时间范围：</span> @DateTimeRangeValue2.Start.ToString("yyyy-MM-dd");
    }
    @if (DateTimeRangeValue2.End != DateTime.MinValue)
    {
        <span> - </span> @DateTimeRangeValue2.End.ToString("yyyy-MM-dd");
    }
</div>

@code {
    private DateTimeRangeValue DateTimeRangeValue2 { get; set; } = new DateTimeRangeValue();
}